package com.dungeon.crawl;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.Spinner;
import android.widget.TextView;

public class CombatActivity extends Activity{
	
	CombatView view2;
	Button go;
	Spinner actions;
	TextView pcHP, pcMP, npcHP, npcMP;
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.combat);
		
		//Widget Setup//
		go = (Button) findViewById(R.id.buttonGo);
		go.setText("Execute");
		actions = (Spinner) findViewById(R.id.spinnerActions);
		pcHP = (TextView) findViewById(R.id.textViewPcHp);
		pcMP = (TextView) findViewById(R.id.textViewPcMp);
		npcHP = (TextView) findViewById(R.id.textViewNpcHp);
		npcMP = (TextView) findViewById(R.id.textViewNpcMp);
		
		//setup the primary view window
		FrameLayout layout = (FrameLayout) findViewById(R.id.frameLayout1);
		view2 = new CombatView(this);
		layout.addView(view2);
	}

}
